package com.xcdh.trading.controller;

import com.xcdh.commons.controller.BaseController;
import com.xcdh.domain.vo.R;
import com.xcdh.trading.entity.StockBidding;
import com.xcdh.trading.service.StockBiddingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stockBidding")
public class StockBiddingController extends BaseController<StockBidding, StockBiddingService> {

    @Autowired
    private StockBiddingService biddingService ;

    @PostMapping("/syncDayBidding/{dateCode}")
    public R syncDayBidding(@PathVariable String dateCode){
        biddingService.syncDayBidding(dateCode);
        return R.ok() ;
    }
}
